.class public Lcom/xingbook/audio/d/a;
.super Landroid/widget/RelativeLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/RelativeLayout;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Lcom/xingbook/park/ui/o;


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/o;)V
    .locals 1

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object p3, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    const v0, -0x80809

    invoke-virtual {p0, v0}, Lcom/xingbook/audio/d/a;->setBackgroundColor(I)V

    invoke-direct {p0, p1, p2}, Lcom/xingbook/audio/d/a;->a(Landroid/content/Context;F)V

    return-void
.end method

.method private a(Landroid/content/Context;F)V
    .locals 12

    const/4 v11, -0x2

    const/high16 v10, 0x4200

    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v7, 0x0

    const/high16 v0, 0x4284

    mul-float/2addr v0, p2

    float-to-int v0, v0

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/audio/d/a;->a:Landroid/widget/RelativeLayout;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v2, p0, Lcom/xingbook/audio/d/a;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v2, v1}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/audio/d/a;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v1}, Lcom/xingbook/audio/d/a;->addView(Landroid/view/View;)V

    new-array v1, v9, [[I

    new-array v2, v8, [I

    const v3, 0x101009e

    aput v3, v2, v7

    aput-object v2, v1, v7

    new-array v2, v7, [I

    aput-object v2, v1, v8

    new-array v2, v9, [I

    fill-array-data v2, :array_0

    new-instance v3, Landroid/content/res/ColorStateList;

    invoke-direct {v3, v1, v2}, Landroid/content/res/ColorStateList;-><init>([[I[I)V

    const/high16 v1, 0x41e0

    mul-float/2addr v1, p2

    float-to-int v1, v1

    const/high16 v2, 0x4208

    mul-float/2addr v2, p2

    float-to-int v2, v2

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    const v5, 0x7f0a0028

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setId(I)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    invoke-virtual {v4, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    const/16 v5, 0x11

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    invoke-virtual {v4, v2, v7, v1, v7}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    invoke-virtual {v4, v3}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    mul-float v5, v10, p2

    invoke-virtual {v4, v7, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v11, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v5, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->a:Landroid/widget/RelativeLayout;

    iget-object v5, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    invoke-virtual {v4, v5}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/view/View;

    invoke-direct {v4, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v5, 0x7f0a0029

    invoke-virtual {v4, v5}, Landroid/view/View;->setId(I)V

    const v5, -0x333334

    invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v6, 0x4248

    mul-float/2addr v6, p2

    float-to-int v6, v6

    invoke-direct {v5, v9, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v6, 0xf

    invoke-virtual {v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const v6, 0x7f0a0028

    invoke-virtual {v5, v8, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    invoke-virtual {v4, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, p0, Lcom/xingbook/audio/d/a;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v5, v4}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    const v5, 0x7f0a002a

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setId(I)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    invoke-virtual {v4, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    const/16 v5, 0x11

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    const-string v5, "\u5220\u9664"

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v4, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    invoke-virtual {v4, v1, v7, v2, v7}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v1, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v1, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    mul-float v2, v10, p2

    invoke-virtual {v1, v7, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v11, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const v0, 0x7f0a0029

    invoke-virtual {v1, v8, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->a:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-void

    nop

    :array_0
    .array-data 0x4
        0x66t 0x66t 0x66t 0xfft
        0xcct 0xcct 0xcct 0xfft
    .end array-data
.end method


# virtual methods
.method public a()V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->h()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-virtual {p0, v1}, Lcom/xingbook/audio/d/a;->setVisibility(I)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    invoke-interface {v1}, Lcom/xingbook/park/ui/o;->g()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->c:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    invoke-interface {v1}, Lcom/xingbook/park/ui/o;->f()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->d()Z

    move-result v0

    iget-object v1, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setSelected(Z)V

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    const-string v1, "\u53d6\u6d88\u5168\u9009"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    return-void

    :cond_0
    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/audio/d/a;->setVisibility(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/audio/d/a;->b:Landroid/widget/TextView;

    const-string v1, "\u5168\u9009"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0028

    if-ne v0, v1, :cond_2

    invoke-virtual {p1}, Landroid/view/View;->isSelected()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->c()Z

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->e()Z

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a002a

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/d/a;->d:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->i()Z

    goto :goto_0
.end method
